class WXUserInfoEntity {
  String errcode;
  String errmsg;
  String openid;
  String nickname;
  int sex;
  String province;
  String city;
  String country;
  String headimgurl;

  WXUserInfoEntity(
      {this.errcode,
      this.errmsg,
      this.openid,
      this.nickname,
      this.sex,
      this.province,
      this.city,
      this.country,
      this.headimgurl});

  WXUserInfoEntity.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    errmsg = json['errmsg'];
    openid = json['openid'];
    nickname = json['nickname'];
    sex = json['sex'];
    province = json['province'];
    city = json['city'];
    country = json['country'];
    headimgurl = json['headimgurl'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    data['errmsg'] = this.errmsg;
    data['openid'] = this.openid;
    data['nickname'] = this.nickname;
    data['sex'] = this.sex;
    data['province'] = this.province;
    data['city'] = this.city;
    data['country'] = this.country;
    data['headimgurl'] = this.headimgurl;
    return data;
  }
}
